from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import DataRequired, Length, Email

class LoginForm(FlaskForm): 
    email = StringField('Email', validators=[DataRequired(), Length(1, 64), 
                                             Email()]) 
    password = PasswordField('密码', validators=[DataRequired()]) 
    remember_me = BooleanField('记住我') 
    submit = SubmitField('登录')